import Cookies from "js-cookie";


const key = "auth_token";

//设置凭据
export const set_token = (token) => {
    Cookies.set(key, token);
}


/**
 * 获取登录凭据
 */

export const get_token = () => {
    return Cookies.get(key);
}

/**
 * 移动凭据
 */

export const remove_token = () => {
    Cookies.remove(key);
}